package com.liaoxuefeng.java_thread;

import org.jetbrains.annotations.NotNull;

public class TestChange {

    public static void main(String[] args) {
        int[] myArray = {1, 2, 3, 4, 5};
        ChangeIt.doIt(myArray);
        for(int i : myArray) {
            System.out.println(i);
        }
    }
}

class ChangeIt{
    static void doIt(int[] z) {
        int[] A = z;
        A[0] = 99;
    }

    static void blur(char @NotNull [] z, String st) {
        if (z.length < st.length()) return;
        for (int i = 0; i < st.length(); i++) {
            z[i] = st.charAt(i);
        }
    }
}
